package ModelLayer;


/**
 * This class is the DVD class, it functions as the DVD creator class. In this class it is possible to 
 * create a new DVD, with several parameters, also set and get methods are available, together with a 
 * method to print out information.
 * 
 * @author (Gruppe B) 
 * @version 1.0 (09-11-2013)
 */
public class DVD
{
    // instance variables - replace the example below with your own
    private String title;
    private String genre;
    private String releaseDate;
    private String language;
    private String subtitle;
    private double playTime;
    private int copy;

    /**
     * Constructor for objects of class DVD
     */
    public DVD(String title, String genre, String releaseDate, String language, String subtitle, double playTime, int copy)
    {        
        this.title = title;
        this.genre = genre;
        this.releaseDate = releaseDate;
        this.language = language;
        this.subtitle = subtitle;
        this.playTime = playTime;
        this.copy = copy;
    }
    
    /**
     * Set method for the title variable
     */
    public void setTitle(String title)
    {
        this.title = title;
    }

    /**
     * Set method for the genre variable
     */
    public void setGenre(String genre)
    {
        this.genre = genre;
    }
    
    /**
     * Set method for the releaseDate variable
     */
    public void setReleaseDate(String releaseDate)
    {
        this.releaseDate = releaseDate;
    }   
    
    /**
     * Set method for the subtitle variable
     */
    public void setSubtitle(String subtitle)
    {
        this.subtitle = subtitle;
    } 
    
    /**
     * Set method for the playTime variable
     */
    public void setPlayTime(double playTime)
    {
        this.playTime = playTime;
    }  
    
    /**
     * Set method for the copy variable
     */
    public void setCopy(int copy)
    {
        this.copy = copy;
    }    
    
    /**
     * Set method for the language variable
     */
    public void setLanguage(String language)
    {
        this.language = language;
    } 
    
    /**
     * Get method for the title variable
     */
    public String getTitle()
    {
        return title;
    }
    
    /**
     * Get method for the genre variable
     */
    public String getGenre()
    {
        return genre;
    }
    
    /**
     * Get method for the releaseDate variable
     */
    public String getReleaseDate()
    {
        return releaseDate;
    }
    
    /**
     * Get method for the subtitle variable
     */
    public String getSubtitle()
    {
        return subtitle;
    }
    
    /**
     * Get method for the playTime variable
     */
    public double getPlayTime()
    {
        return playTime;
    }
    
    /**
     * Get method for the copy variable
     */
    public int getCopy()
    {
        return copy;
    }
    
    /**
     * Get method for the language variable
     */
    public String getLanguage()
    {
        return language;
    }
    
    
    /**
     * This method prints out the title, genre, releaseDate, language, subtitle, playTime and copy variables.
     */
    public void printDVDInfo()
    {
        System.out.println();
        System.out.println("Title: " + title);
        System.out.println("Genre: " + genre);
        System.out.println("Release Date: " + releaseDate);
        System.out.println("Language: " + language);
        System.out.println("Subtitle: " + subtitle);
        System.out.println("Playtime: " + playTime);
        System.out.println("Copy: " + copy);
        
    }


}
